<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vue指令</title>
</head>
<body>
<!--v-text and v-html-->
<div id="app">
    <p v-text="title"></p>
    <p v-html="title"></p>
</div>
</body>
</html>
<script src="js/vue.js"></script>
<script>
    new Vue({
        el: '#app',
        data: {
            title: '<h2>hello world</h2>'
        }
    })
</script>